﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="msgsend.aspx.cs" Inherits="top_groupbuy_msgsend" validateRequest="false" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>特特CRM_客户关系营销</title>
<link href="../css/common.css" rel="stylesheet" />
<style>
    td{font-size:12px;}
    a{color:Blue; text-decoration:none;}
</style>


</head>
<body style="padding:0px; margin:0px;">

    <form id="form1" runat="server">
    <input type="hidden" name="t" id="t" value="" />
<div class="navigation" style="height:600px;">

  <div class="crumbs"><a href="javascript:;" class="nolink">特特CRM_客户关系营销</a> 批量赠送优惠券 </div>
  <div class="absright">
    <ul>
      <li>
        <div class="msg">
            
        </div>
      </li>
    </ul>
  </div>
    <div id="main-content">
    
        <input type="button" value="返回客户列表" onclick="window.location.href='customlist.aspx'" />
        <hr />

        <table width="700">
            <tr>
                <td align="left" width="180" height="30">请选择发送的会员组：</td>
                <td>
                    <select name="typ" onchange="InitUserCount(this)">
                        <option value="" title="<%=count1 %>">所有会员</option>
                        <optgroup label="自定义会员组">
                        <%=groupstr %>
                        </optgroup>
                        <optgroup label="按用户组区别">
                            <option value="1" title="<%=count6 %>">普通会员</option>
                            <option value="2" title="<%=count7 %>">高级会员</option>
                            <option value="3" title="<%=count8 %>">VIP会员</option>
                            <option value="4" title="<%=count9 %>">至尊VIP会员</option>
                        </optgroup>
                    </select>
                </td>
            </tr>
            <tr>
                <td align="left" height="30">选择赠送的优惠券：</td>
                <td>
                    <%=couponstr%>
                    <a href="../reviewnew/couponadd.aspx">创建优惠券</a>
                    <a href="../reviewnew/couponsend.aspx">查看优惠券赠送记录</a>
                </td>
            </tr>
            <tr>
                <td align="left" width="180" height="30">该组会员数量：</td>
                <td>
                    【<span ID="lbCount"><%=count1 %></span>】
                </td>
            </tr>
            <!--<tr>
                <td align="left" width="180" height="30">是否发送短信：</td>
                <td>
                    <input type="radio" name="ismsg" value="0" checked="checked" />不发
                    <input type="radio" name="ismsg" value="1" />发短信

                    设置短信内容 （如果在）
                </td>
            </tr>-->
            <tr>
                <td align="left" colspan="2">
                    <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="赠送优惠券给买家" OnClientClick="return check(this)" />
                </td>
            </tr>
        </table>

    </div>
</div>
</form>

<script>
    function check(obj) {
        if (confirm('您确认要批量赠送，该操作不可恢复？')) {
            obj.value = "批量赠送中，请您耐心等待..";
            return true;
            //obj.disabled = true;
        } else {
            return false;
        }
    }
    function InitUserCount(obj) {
        document.getElementById("lbCount").innerHTML = obj.options[obj.options.selectedIndex].title;
    }
</script>

</body>
</html>